package com.hp.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * @author hp
 */

@Getter
@AllArgsConstructor
public enum LearnerPurposeEnum {

    Regular_ESL_ADULT(1, "Regular ESL ADULT"),
    Regular_ESL_KID_5_6yrs(2, "Regular ESL KID-5-6yrs"),
    Regular_ESL_KID_7_10yrs(3, "Regular ESL KID-7-10yrs"),
    Regular_ESL_KID_11_15yrs(4, "Regular ESL KID-11-15yrs"),
    IELTS(5, "IELTS");


    private final int id;
    private final String name;


    public static String[] getAllNameArray() {
        return Arrays.stream(LearnerPurposeEnum.values())
                .map(LearnerPurposeEnum::getName)
                .toArray(String[]::new);
    }
}
